package threadTestDemo.bank;

import java.math.BigDecimal;

public class TransferMoneyDto {
    //修改stringBuffer为String,
    String accountFrom;
    String accountTo;
    OperateType operateType;
    BigDecimal changeNumber;

    public String getAccountFrom() {
        return accountFrom;
    }

    public void setAccountFrom(String accountFrom) {
        this.accountFrom = accountFrom;
    }

    public String getAccountTo() {
        return accountTo;
    }

    public void setAccountTo(String accountTo) {
        this.accountTo = accountTo;
    }

    public OperateType getOperateType() {
        return operateType;
    }

    public void setOperateType(OperateType operateType) {
        this.operateType = operateType;
    }

    public BigDecimal getChangeNumber() {
        return changeNumber;
    }

    public void setChangeNumber(BigDecimal changeNumber) {
        this.changeNumber = changeNumber;
    }

    public TransferMoneyDto() {
    }

    public TransferMoneyDto(String accountFrom, String accountTo, OperateType operateType, BigDecimal changeNumber) {
        this.accountFrom = accountFrom;
        this.accountTo = accountTo;
        this.operateType = operateType;
        this.changeNumber = changeNumber;
    }

    @Override
    public String toString() {
        return "TransferMoneyDto{" +
                "accountFrom=" + accountFrom +
                ", accountTo=" + accountTo +
                ", operateType=" + operateType +
                ", changeNumber=" + changeNumber +
                '}';
    }
}
